#include "ctexteditplugin.h"
#include "ctextedit.h"
#include <QtCore/QtPlugin>

CTextEditPlugin::CTextEditPlugin(QObject *parent) :
    QObject(parent)
{
}

QString CTextEditPlugin::name() const
{
    return "CTextEdit";
}


QString CTextEditPlugin::includeFile() const
{
    return "textedit/ctextedit.h";
}

QString CTextEditPlugin::group() const
{
    return tr("Input Widgets");
}

QIcon CTextEditPlugin::icon() const
{
    return QIcon(":/icons/res/icons/textedit.png");
}

QString CTextEditPlugin::toolTip() const
{
    return tr("Text editor");
}

QString CTextEditPlugin::whatsThis() const
{
    return tr("Text editor");
}

bool CTextEditPlugin::isContainer() const
{
    return false;
}

QWidget *CTextEditPlugin::createWidget(QWidget *parent)
{
    return new CTextEdit(parent);
}

Q_EXPORT_PLUGIN2(ctexteditplugin, CTextEditPlugin)
